package com.wcy.service.impl;

import com.wcy.entity.ResourceTag;
import com.wcy.mapper.ResourceTagMapper;
import com.wcy.service.IResourceTagService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 吴传亿
 * @since 2025-04-27
 */
@Service
public class ResourceTagServiceImpl extends ServiceImpl<ResourceTagMapper, ResourceTag> implements IResourceTagService {
    @Autowired
    private ResourceTagMapper resourceTagMapper;
    @Override
    public List<ResourceTag> getTagsByResourceId(Integer resourceId) {
        return resourceTagMapper.selectTagsByResourceId(resourceId);
    }
}
